package com.baizhi.cmfz.appcontroller;

import com.baizhi.cmfz.entity.Audio;
import com.baizhi.cmfz.service.AudioService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/audio")
public class AudioAppController {

	@Resource
	private AudioService audioService;

	@RequestMapping("/selectAll/{audioId}")
	public List<Audio> selectAll(@PathVariable("audioId") int audioId){
		return audioService.selectAll(audioId);
	}
}
